<template>
  <div class="child1">
    <fieldset>
      <legend><h2>child1组件</h2></legend>
      <input type="text" placeholder="请输入文本"><br>
      <slot></slot>
    </fieldset>
  </div>
</template>

<script>
export default {
  name: "Child1"
}
</script>

<style scoped>
  .child1{
    width: 100%;
    height: 70%;
    background-color: #8a9aff;
  }
</style>